using System;
using System.Collections.Generic;
using System.Text;
using Watchdog.Bll;
using Watchdog.Bll.Factory;

namespace Watchdog.Tester {
    class Program {
        static void Main ( string[] args ) {
            Console.WriteLine ("Starting");
            //System.Threading.Thread.Sleep (2000);

            Test t = TestFactory.GetById (1);
            Console.WriteLine (t.Definition.Name);
            t.AddDevice ( ServerTeam.Bll.Factory.DeviceFactory.GetById ( 14 ) );

            foreach (TargetType tt in t.Definition.TargetTypes) {
                Console.WriteLine (tt.Name);
            }
            foreach (Config conf in t.Definition.Configs) {
                Console.WriteLine (conf.Name);
            }
            foreach (Notification not in t.Notifications) {
                Console.WriteLine (not.Id.ToString ());
            }
        }
    }
}
